#!/bin/sh
#https://github.com/AgoraIO/Advanced-Interactive-Broadcasting.git
echo 'Please enter you want to pull github path'
read githubPath
github=${githubPath:0:18}
echo $github
if [ $github == "https://github.com" ];
then
echo $githubPath
savePath=${githubPath##*/}
echo $savePath
saveLeng=${#savePath}
saveLeng=$((saveLeng - 4))
savePath=${savePath:0:$saveLeng}
git clone ${githubPath} ${savePath}
echo "save $(pwd)/${savePath}"
fi
